<?php
namespace app\index\model;

use think\Model;
use app\index\model\Base;

class User extends Base
{
    public function getUserByUserName($username)
    {
        return $this->where('username',  $username)->find();
    }
}
